<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Goods extends Model
{
    public function getPicAttribute($v)
    {
        if ($v) {
            return config('filesystems.disks.admin.url').'/'.$v;
        } else {
            return '';
        }
    }

    public function getAvatarAttribute($v)
    {
        if ($v) {
            return config('filesystems.disks.admin.url').'/'.$v;
        } else {
            return '';
        }
    }
}
